package com.zang.blogz.strategy;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.zang.blogz.enmus.LoginTypeEnum;
import com.zang.blogz.model.output.UserInfoVO;
import com.zang.blogz.result.Result;

import java.io.IOException;

/**
 * @Author: ZVerify
 * @Description:  登录策略
 * @DateTime: 2022/9/2 9:43
 **/
public interface SocialLoginStrategy {

    /**
     * 登录
     *
     * @param data 数据
     * @return {@link SaTokenInfo} 用户信息
     */
    Result<UserInfoVO> login(String data, LoginTypeEnum loginTypeEnum) throws IOException;
}
